package com.tencreat.common.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.tencreat.common.core.enums.ImOnlineStatus;
import com.tencreat.common.core.enums.ImUserStatus;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("`im_user`")
public class ImUser {
    @TableId(type = IdType.AUTO)
    private Long id;
    private String nickname;
    private String username;
    private String password;
    private String avatar;
    private ImOnlineStatus onlineStatus;
    private ImUserStatus userStatus;
    // 登录设备信息
    private String ip;
    private String browser;
    private String os;
    private String location;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
}